<include file="header" />
<include file="share_header" />
<body>
<div class="wraper hasmenu">
    <div class="center-top tb-mode">
        <div class="tb-cell">
            <p>剩余金额 <span class="text-20">{BEESCRM:$surplusMoney}元</span></p>
            <!-- <p>赠送时长 <span class="text-20">{BEESCRM:$presentTime}分钟</span></p> -->
        </div>
        <div class="tb-cell text-right">
            <if condition="$chargingId gt 0">
                 <a href="/index.php?g=Charger&m=RechargingProx&a=ChargingRecharge&accountId={BEESCRM:$accountId}&chargingId={BEESCRM:$chargingId}&ADTAG=a" class="charge-btn text-16">充值</a>
            <else/>
                <!--/index.php?g=Charger&m=RechargingProx&a=ChargingRecharge&accountId={BEESCRM:$accountId}&ADTAG=a-->
                <a href="#" class="charge-btn text-16 toCharge">充值</a>
            </if>   
        </div>


    </div>

    <a href="{BEESCRM::U('/Charger/RechargingProx/chargingMoneyRecord',array('accountId'=>$accountId))}" class="lists">
        <div class="tb-mode">
            <p class="tb-cell">
                <span class="iconbox color-1"><span class="iconfont icon-chongdianjilu"></span></span>
                <span>充值记录</span>
            </p>
            <p class="tb-cell text-right"><span class="iconfont icon-you"></span></p>
        </div>
    </a>
    <a href="{BEESCRM::U('/Charger/RechargingProx/chargingRecord',array('accountId'=>$accountId))}" class="lists">
        <div class="tb-mode">
            <p class="tb-cell">
                <span class="iconbox color-2"><span class="iconfont icon-iconfonticon07"></span></span>
                <span>充电记录</span>
            </p>
            <p class="tb-cell text-right"><span class="iconfont icon-you"></span></p>
        </div>
    </a>

    <a href="{BEESCRM::U('/Charger/RechargingProx/chargingHelpCenter',array('accountId'=>$accountId))}" class="lists">
        <div class="tb-mode">
            <p class="tb-cell">
                <span class="iconbox color-4"><span class="iconfont icon-bangzhu"></span></span>
                <span>使用帮助</span>
            </p>
            <p class="tb-cell text-right"><span class="iconfont icon-you"></span></p>
        </div>
    </a>
    <a href="{BEESCRM::U('/Charger/RechargingProx/chargingAgreement',array('accountId'=>$accountId))}" class="lists">
        <div class="tb-mode">
            <p class="tb-cell">
                <span class="iconbox color-5"><span class="iconfont icon-hehuoxieyi"></span></span>
                <span>用户协议</span>
            </p>
            <p class="tb-cell text-right"><span class="iconfont icon-you"></span></p>
        </div>
    </a>
    <a href="{BEESCRM::U('/Charger/RechargingProx/chargingpreferential',array('accountId'=>$accountId))}" class="lists">
        <div class="tb-mode">
            <p class="tb-cell">
                <span class="iconbox color-3"><span class="iconfont icon-youhuiquan"></span></span>
                <span>优惠券</span>
            </p>
            <p class="tb-cell text-right">
                <span class="iconfont icon-youhuiquan1 text-green"></span>
                <span class="iconfont icon-you"></span>
            </p>
        </div>
    </a>
    <a href="#" class="lists">
        <div class="tb-mode">
            <p class="tb-cell">
                <span class="iconbox color-6"><span class="iconfont icon-gengduo"></span></span>
                <span>敬请期待</span>
            </p>
            <!--<p class="tb-cell text-right"><span class="iconfont icon-you"></span></p>-->
        </div>
    </a>
    
        
    <include file="nav"/>
</div>
<include file="commonJS"/>
<script>
    seajs.use(['$','layer'], function() {
        wx.ready(function(){
                $('.scan_code').on('click',function(){
                    wx.scanQRCode({
                        needResult: 0, // 默认为0，扫描结果由微信处理，1则直接返回扫描结果，
                        scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码，默认二者都有
                        success: function (res) {
                            var result = res.resultStr; // 当needResult 为 1 时，扫码返回的结果
                        }
                    });
                })
        })    
        $('.toCharge').on('click',function(){
            fm.alert('首次使用请扫桩位上的二维码点击充值');
        })
})
   
</script>
</body>
</html>